package shared.implicits

import java.io.File
import scala.util.Try

/**
 * Created by Administrator on 2019/9/12
 */
trait MyDoubleTool {

  implicit class MyDouble(v: Double) {

    def toFixed(n: Int) = {
      v.formatted(s"%.${n}f")
    }

  }


}
